<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>事件绑定</title>
</head>
<body>
    <div id="app">
        {{message}}
        <h2>count:{{count}}</h2>
        <button v-on:click="cl">点击</button>
    </div>
</body>
<script src="./js/vue.js"></script>
<script>
    let app = new Vue({
        el:"#app",
        data:{
            message:"事件绑定",
            count:0
        },methods:{
            cl:function(){
                //this表示当前实例
                this.count++
            }

        }
    })
</script>
</html>